﻿

#include "gui_asset_charmap.h"
// 字库头信息和区块信息
#define CHARSMAP_VERSION_VALUE 0x0001
#define CHARSMAP_VERSION_STRING "v0.1"


const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_16 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00000862,
	.num_of_section	=	1,
	.height_of_font	=	19,
	.width_of_font	=	16,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_16 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_20 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00000AF1,
	.num_of_section	=	1,
	.height_of_font	=	24,
	.width_of_font	=	20,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_20 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_24 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00000DDC,
	.num_of_section	=	1,
	.height_of_font	=	29,
	.width_of_font	=	24,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_24 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_28 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x0000115B,
	.num_of_section	=	1,
	.height_of_font	=	33,
	.width_of_font	=	28,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_28 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_32 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x000016B3,
	.num_of_section	=	1,
	.height_of_font	=	38,
	.width_of_font	=	32,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_32 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_36 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00001A4E,
	.num_of_section	=	1,
	.height_of_font	=	43,
	.width_of_font	=	36,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_36 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_40 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00001EBF,
	.num_of_section	=	1,
	.height_of_font	=	48,
	.width_of_font	=	40,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_40 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_ASCII_48 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00002CB4,
	.num_of_section	=	1,
	.height_of_font	=	57,
	.width_of_font	=	48,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_ASCII_48 [] = 
{
{	.first	= 0x0020,	.last	= 0x007F,	.offset	= 0x00000018	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_UNICODE_SC_16 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x000B6ABC,
	.num_of_section	=	3,
	.height_of_font	=	19,
	.width_of_font	=	16,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_UNICODE_SC_16 [] = 
{
{	.first	= 0x0020,	.last	= 0x0451,	.offset	= 0x00000028	}
,{	.first	= 0x4E00,	.last	= 0x9F9F,	.offset	= 0x000010F0	}
,{	.first	= 0xFE10,	.last	= 0xFFE5,	.offset	= 0x00015770	}
};
const fl_header_t fl_header_HarmonyOS_Sans_SC_Medium_UNICODE_SC_24 = 
 { 
	.magic			=	0x464C4D43,
	.size			=	0x00175DAC,
	.num_of_section	=	3,
	.height_of_font	=	29,
	.width_of_font	=	24,
	.code_flag		=	0x00,
	.version		=	0x0200,
	.reserved = 0,
};
const fl_section_inf_t fl_section_HarmonyOS_Sans_SC_Medium_UNICODE_SC_24 [] = 
{
{	.first	= 0x0020,	.last	= 0x0451,	.offset	= 0x00000028	}
,{	.first	= 0x4E00,	.last	= 0x9F9F,	.offset	= 0x000010F0	}
,{	.first	= 0xFE10,	.last	= 0xFFE5,	.offset	= 0x00015770	}
};
// 定义访问数组 
const charmap_list_struct_t FONT_LIBRARY_STRUCT[] = 
{
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_16, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_16, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x00000000, .params.width = 16 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_20, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_20, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x00000862, .params.width = 20 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_24, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_24, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x00001353, .params.width = 24 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_28, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_28, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000212F, .params.width = 28 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_32, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_32, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000328A, .params.width = 32 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_36, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_36, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000493D, .params.width = 36 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_40, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_40, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000638B, .params.width = 40 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_ASCII_48, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_ASCII_48, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000824A, .params.width = 48 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_UNICODE_SC_16, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_UNICODE_SC_16, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x0000AEFE, .params.width = 16 },
	{.p_header = &fl_header_HarmonyOS_Sans_SC_Medium_UNICODE_SC_24, .p_section = fl_section_HarmonyOS_Sans_SC_Medium_UNICODE_SC_24, .params.offset = GUI_FONT_LIBRARY_START_ADDRESS + 0x000C19BA, .params.width = 24 },

};
// 所有字体对应的高度
const uint8_t height_of_fonts[] = {
19,24,29,33,38,43,48,57,19,29
};
// 所有字体对应的宽度
const uint8_t size_of_fonts[] = {
16,20,24,28,32,36,40,48,16,24
};
// 定义访问数组宏位置 
#define HarmonyOS_Sans_SC_Medium_ASCII_16		(0)
#define HarmonyOS_Sans_SC_Medium_ASCII_20		(1)
#define HarmonyOS_Sans_SC_Medium_ASCII_24		(2)
#define HarmonyOS_Sans_SC_Medium_ASCII_28		(3)
#define HarmonyOS_Sans_SC_Medium_ASCII_32		(4)
#define HarmonyOS_Sans_SC_Medium_ASCII_36		(5)
#define HarmonyOS_Sans_SC_Medium_ASCII_40		(6)
#define HarmonyOS_Sans_SC_Medium_ASCII_48		(7)
#define HarmonyOS_Sans_SC_Medium_UNICODE_SC_16		(8)
#define HarmonyOS_Sans_SC_Medium_UNICODE_SC_24		(9)
